<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Pig 微服务统一认证</title>

    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
    <link th:href="@{/css/signin.css}" rel="stylesheet">
</head>

<body class="sign_body">
    <div class="container form-margin-top">
        <form class="form-signin" th:action="${loginProcessUrl}" method="post">
            <h2 class="form-signin-heading" align="center">统一认证系统</h2>
            <input type="text" name="username" class="form-control form-margin-top" placeholder="账号" required autofocus>
            <input type="password" name="password" class="form-control" placeholder="密码" required>
            <input type="text" name="code" class="form-control" placeholder="验证码" required>
            <button class="btn btn-lg btn-primary btn-block" type="submit">sign in</button>
            <span style="color: red; " th:if="${param.error}">用户名或密码错误</span>
            <span style="color: red;" th:if="${param.logout}">你已经退出登录</span>
        </form>
    </div>
    <footer>
        <p>support by: pig4cloud</p>
        <p>email: <a href="mailto:pig4cloud@qq.com">pig4cloud@qq.com</a>.</p>
    </footer>
</body>
</html>